package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
     void saveWithFlavor(DishDto dishDto);
     DishDto selectDishDto(long id);
     void updateWithFlavor(DishDto dishDto);
     Page<DishDto> pageByName(Integer page,Integer pageSize,String name);
     void removeByIdsWithFlavor(List<Long> ids);
     List<DishDto> getDishWithFlavor(Dish dish);
}
